package com.biostime.qdingding.modules.qd.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.biostime.qdingding.common.persistence.DataEntity;

/**
 * 优惠券Entity
 * @author king
 * @version 2016-02-17
 */
public class Coupon extends DataEntity<Coupon> {

	private static final long serialVersionUID = 1L;
	
	private String type;// 类型
	private String name;// 优惠券名称
	private String showName;// 优惠券显示名称
	private String instruction;// 优惠券使用说明
	private Date starton;// 有效开始日期
	private Date endon;// 有效结束日期
	private Double effectMoney;// 生效所需金额
	private Double denomination;// 面额
	private String useRange;// 优惠券使用范围对应course表的type字段
	
	private String centerId;
	
	private List<Boolean> useRangeBoolean;
	
	public Coupon(){
		super();
		useRangeBoolean = new ArrayList<Boolean>();
		useRangeBoolean.add(false);
		useRangeBoolean.add(false);
		useRangeBoolean.add(false);
	}
	
	public Coupon(String id){
		super(id);
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getShowName() {
		return showName;
	}

	public void setShowName(String showName) {
		this.showName = showName;
	}
	
	public String getInstruction() {
		return instruction;
	}

	public void setInstruction(String instruction) {
		this.instruction = instruction;
	}
	
	public Date getStarton() {
		return starton;
	}

	public void setStarton(Date starton) {
		this.starton = starton;
	}
	
	public Date getEndon() {
		return endon;
	}

	public void setEndon(Date endon) {
		this.endon = endon;
	}
	
	public Double getEffectMoney() {
		return effectMoney;
	}

	public void setEffectMoney(Double effectMoney) {
		this.effectMoney = effectMoney;
	}

	public Double getDenomination() {
		return denomination;
	}

	public void setDenomination(Double denomination) {
		this.denomination = denomination;
	}

	public String getUseRange() {
		return useRange;
	}

	public void setUseRange(String useRange) {
		this.useRange = useRange;
	}

	public List<Boolean> getUseRangeBoolean() {
		return useRangeBoolean;
	}

	public void setUseRangeBoolean(List<Boolean> useRangeBoolean) {
		this.useRangeBoolean = useRangeBoolean;
	}

	public String getCenterId() {
		return centerId;
	}

	public void setCenterId(String centerId) {
		this.centerId = centerId;
	}
	
}